
alter table plants_distributions
	drop column plant_id
go
alter table plants_distributions
	add plant_version_id int not null
go
alter table plants_distributions
	add constraint fk_plant_version_distribution foreign key (plant_version_id) references plants_versions(plant_version_id)
go
